import random
str=""
for i in range(4):
        type=random.randint(0,1)
        if(type==0):
            ch=chr(random.randint(65,90))
            str+=ch
        elif(type==1):
            ch = chr(random.randint(97, 122))
            str+=ch
print("验证码为:{}".format(str))
